When running uninstalled tests with GtkApplication on an autobuilder with
a fake session bus, warnings will cause the tests to abort. The GNOME
session manager, the Xfce session manager, and the Inhibit portal are all
not needed for normal operation of GTK, so we should not log warnings if
they are not found.
As well as not being present on a fake session bus, it's also not
expected that they'll be present on all platforms.
https://bugzilla.gnome.org/show_bug.cgi?id=774784
if (error)
{
- g_warning ("Failed to get the GNOME session proxy: %s", error->message);
+ g_debug ("Failed to get the GNOME session proxy: %s", error->message);
g_clear_error (&error);
}
if (error)
{
- g_warning ("Failed to get the Xfce session proxy: %s", error->message);
+ g_debug ("Failed to get the Xfce session proxy: %s", error->message);
g_clear_error (&error);
goto out;
}
&error);
if (error)
{
- g_warning ("Failed to get an inhibit portal proxy: %s", error->message);
+ g_debug ("Failed to get an inhibit portal proxy: %s", error->message);
g_clear_error (&error);
}
}